package com.ctg.itrdc.sysmgr.portal.data.entity;

import com.ctg.itrdc.pasp.core.Entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * Created by xiongkw on 2017/5/4.
 */
@Table(name="SYSUSER_PASSWORD_HIS")
public class SysuserPasswordHis extends Entity<Long> {

    @Id
    @Column(name="ID")
    private Long id;

    @Column(name="SYS_USER_ID")
    private Long sysUserId;

    @Column(name="PASSWORD")
    private String password;

    @Column(name="REMARK")
    private String remark;

    /**
     * 记录系统用户创建人
     */
    @Column(name = "CREATE_STAFF")
    private Long createStaff;

    /**
     * 记录系统用户创建时间
     */
    @Column(name = "CREATE_DATE")
    private Timestamp createDate;

    /**
     * 修改时间
     */
    @Column(name = "UPDATE_DATE")
    private Timestamp updateDate;

    /**
     * 修改人
     */
    @Column(name = "UPDATE_STAFF")
    private Long updateStaff;

    /**
     * 租户标识。
     */
    @Column(name = "TENANT_ID")
    private Long tenantId;

    /**
     * 分片键1，固定值-1。
     */
    @Column(name = "SHARD1")
    private Long shard1;

    /**
     * 分片键2，固定值-1。
     */
    @Column(name = "SHARD2")
    private Long shard2;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public Long getSysUserId() {
        return sysUserId;
    }

    public void setSysUserId(Long sysUserId) {
        this.sysUserId = sysUserId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getCreateStaff() {
        return createStaff;
    }

    public void setCreateStaff(Long createStaff) {
        this.createStaff = createStaff;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    public Timestamp getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Timestamp updateDate) {
        this.updateDate = updateDate;
    }

    public Long getUpdateStaff() {
        return updateStaff;
    }

    public void setUpdateStaff(Long updateStaff) {
        this.updateStaff = updateStaff;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public Long getShard1() {
        return shard1;
    }

    public void setShard1(Long shard1) {
        this.shard1 = shard1;
    }

    public Long getShard2() {
        return shard2;
    }

    public void setShard2(Long shard2) {
        this.shard2 = shard2;
    }
}
